#ifndef LIGHT_H
#define LIGHT_H

//#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#include <object.h>
#include <surface.h>
#include <vector3.h>


typedef struct light
{
  object_t obj;
  vector3_t center;
} light_t;


#define LIGHT_X( s ) ( VECTOR3_X( s->center )  )
#define LIGHT_Y( s ) ( VECTOR3_Y( s->center )  )
#define LIGHT_Z( s ) ( VECTOR3_Z( s->center )  )

light_t *
light_new( void );

void
light_free( light_t *light );

char *
light_str( light_t *light );



#endif /* LIGHT_H */
